<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<title>后台管理</title>
	<link rel="stylesheet" type="text/css" href="./res/css/css.css" />
    <script type="text/javascript" src="./res/js/selecttime.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
	<div id="body">
		<div class="title"><{$do_msg}>模板</div>
		<div style="padding:5px;"></div>
		<form method="post" ENCTYPE="multipart/form-data" action="index.php?ctl=email&act=upload&do=<{$do}>" name="add" onsubmit="return checkform();" style="margin:0px;">
		<table width="100%" cellspacing="1" cellpadding="4">
		<tr>
			<td width="120">营销项目：</td>
			<td><{$ptitle}></td>
		</tr>
		<tr>
        	<td width="120">上传</td>
            <TD>       
     		 <input type="file" id="userfile" name="userfile">
			</TD>
        </tr>
		</table>
        <input type="hidden" name="pid" id="pid" value="<{$pid}>" />
		<div style="text-align:center;padding:5px;">
			<input type="submit" value="提交" /> 　
			<input type="reset" value="重置" />
		</div>
		</form>
<{$aa}>
	</div>
    
<script LANGUAGE='javascript'>
function showhelp(sid){
	var ee = document.getElementById("help"+sid);
	if(ee.style.display == "none") {ee.style.display = "block";}
	else {ee.style.display = "none"}
}
function checkform(){
	if (document.add.username.value==''){
		alert('！！！用户名不能为空！');
		document.add.username.focus();
		return false;
	}
<{if $do !='edit_save'}>
	if (document.add.password.value==''){
		alert('！！！密码不能为空！');
		document.add.password.focus();
		return false;
	}
	if (document.add.password1.value==''){
		alert('！！！确认密码不能为空！');
		document.add.password1.focus();
		return false;
	}
<{/if}>
	if (document.add.password1.value!=document.add.password.value){
		alert('！！！两次密码输入不一致！');
		document.add.password1.focus();
		return false;
	}
	return true;
}
top.document.title=" 后台管理系统 - <{$do_msg}>邮箱";
</script>

</body>
</html>
